package net.qhzw.vip.qiyu.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

/**
 * 换电柜表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "dts_bar_manage_secondary")
public class DtsBarManageSecondary {
    /**
     * ID
     */
    @TableId(value = "id", type = IdType.INPUT)
    private Long id;

    /**
     * 电柜编码
     */
    @TableField(value = "electric_cabinet_code")
    @Excel(name = "设备编码", type = 1, width = 20)
    private String electricCabinetCode;

    @TableField(value = "user_id")
    //@Excel(name = "修理人", type = 1, width = 20)
    private Long userId;

    /**
     * 电柜名称
     */
    @TableField(value = "electric_cabinet_name")
    @Excel(name = "设备名称", type = 1, width = 20)
    private String electricCabinetName;//electricCabinetName

    /**
     * 故障柜门数
     */
    @Excel(name = "故障柜门数", type = 10, width = 20)
    @TableField(value = "prohibited_num")//guzhang
    private Integer prohibitedNum;

    @Excel(name = "禁用柜门数", type = 10, width = 20)
    @TableField(value = "fault_num")
    private Integer faultNum;

    /**
     * 备注
     */
    @TableField(value = "remark")
    @Excel(name = "备注", width = 20)
    private String remark;



    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @TableField(value = "created")
    private Date created;


    @ApiModelProperty(value = "处理完成时上传的照片")
    @TableField(value = "picture")
    private String picture;
    @ApiModelProperty(value = "全景照片")
    @TableField(value = "panorama")
    private String panorama;


    @TableField(value = "status")
    private Byte status;

    @TableField(value = "bar_status")
    private Byte barStatus;

    @ApiModelProperty(value = "仓位")
    @TableField(value = "position")
    private String position;
    @ApiModelProperty(value = "处理的个数")
    @TableField(value = "repair_num")
    private Integer repairNum;

    @TableField(value = "created_time")
    private Date createdTime;

    @ApiModelProperty(value = "主表id")
    @TableField(value = "dts_bar_id")
    private Long dtsBarId;

    @TableField(exist = false)
    private Integer faultIdenti;//故障禁仓标识

    @TableField(exist = false)
    private String creates;//故障禁仓标识
    @TableField(exist = false)
    private List<String> positions;



}